home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / win / ch12 / 12fig03.wrl < prev    next >
Text File  |  1996-09-23  |  897b  |  47 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright [1997] By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Group {
  6.     children [
  7.     # Ground
  8.         Shape {
  9.             appearance Appearance {
  10.                 material Material {
  11.                     diffuseColor 0.0 1.0 0.0
  12.                 }
  13.             }
  14.             geometry Box {
  15.                 size 50.0 0.1 50.0
  16.             }
  17.         },
  18.     # Back archway row
  19.         Transform {
  20.             translation 0.0 0.0 -4.0
  21.             children DEF ArchRow Inline {
  22.                 bboxSize   5.0 8.0 10.0
  23.                 bboxCenter 1.0 4.0 -5.0
  24.                 url "archrow.wrl"
  25.             }
  26.         },
  27.     # Front archway row
  28.         Transform {
  29.             translation 0.0 0.0 4.0
  30.             rotation 0.0 1.0 0.0 3.14
  31.             children USE ArchRow
  32.         },
  33.     # Left archway row
  34.         Transform {
  35.             translation -4.0 0.0 0.0
  36.             rotation 0.0 1.0 0.0 1.57
  37.             children USE ArchRow
  38.         },
  39.     # Right archway row
  40.         Transform {
  41.             translation 4.0 0.0 0.0
  42.             rotation 0.0 1.0 0.0 -1.57
  43.             children USE ArchRow
  44.         }
  45.     ]
  46. }
  47.